package com.mmall.pojo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Goods {
    private Integer id;

    private Integer userId;

    private String title;

    private String des;

    private String picture;

    private String goodsType;

    private String phone;

    private String campus;

    private BigDecimal price;

    private BigDecimal originalPrice;

    private Date createTime;

    private Date updateTime;

    private Integer sellStatus;//售卖状态

    private BigDecimal postage;

    private JSONArray pictureArray;

    private String userface;

    private String nick_name;

    private String createTimeText;

    private Integer isCollection;

    private List<Message> messageList;

    private long pastMinutes;
    private long pastHour;

    private Integer orderId;

    private Integer isShowBuyBtn;

    public Integer getIsShowBuyBtn() {
        return isShowBuyBtn;
    }

    public void setIsShowBuyBtn(Integer isShowBuyBtn) {
        this.isShowBuyBtn = isShowBuyBtn;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public long getPastMinutes() {
        return pastMinutes;
    }

    public void setPastMinutes(long pastMinutes) {
        this.pastMinutes = pastMinutes;
    }

    public long getPastHour() {
        return pastHour;
    }

    public void setPastHour(long pastHour) {
        this.pastHour = pastHour;
    }

    public List<Message> getMessageList() {
        return messageList;
    }

    public void setMessageList(List<Message> messageList) {
        this.messageList = messageList;
    }

    public Integer getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Integer isCollection) {
        this.isCollection = isCollection;
    }

    public String getCreateTimeText() {
        return createTimeText;
    }

    public void setCreateTimeText(String createTimeText) {
        this.createTimeText = createTimeText;
    }

    public String getUserface() {
        return userface;
    }

    public void setUserface(String userface) {
        this.userface = userface;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public JSONArray getPictureArray() {
        return pictureArray;
    }

    public void setPictureArray(JSONArray pictureArray) {
        this.pictureArray = pictureArray;
    }

    public Goods(Integer id, Integer userId, String title, String des, String picture, String goodsType, String phone, String campus, BigDecimal price, BigDecimal originalPrice, Date createTime, Date updateTime, Integer sellStatus, BigDecimal postage) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.des = des;
        this.picture = picture;
        this.goodsType = goodsType;
        this.phone = phone;
        this.campus = campus;
        this.price = price;
        this.originalPrice = originalPrice;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.sellStatus = sellStatus;
        this.postage = postage;
    }



    public Goods() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des == null ? null : des.trim();
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSellStatus() {
        return sellStatus;
    }

    public void setSellStatus(Integer sellStatus) {
        this.sellStatus = sellStatus == null ? null : sellStatus;
    }

    public BigDecimal getPostage() {
        return postage;
    }

    public void setPostage(BigDecimal postage) {
        this.postage = postage == null ? null : postage;
    }
}